QMAKE_CXXFLAGS += -std=c++0x

QT       += core gui
QT += webenginewidgets
CONFIG += c++11

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++11

# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    aboutwindow.cpp \
    accountitem.cpp \
    applink.c \
    arrangedwnd.cpp \
    browser.cpp \
    browsercomponent.cpp \
    browsermainwindow.cpp \
    configmanager.cpp \
    configwindow.cpp \
    contentwidget.cpp \
    customwarningdialog.cpp \
    customwebpage.cpp \
    customwebview.cpp \
    downloadwidget.cpp \
    downloadwindow.cpp \
    favoritemanagerwindow.cpp \
    filecheckmanager.cpp \
    historymanager.cpp \
    historymanagerwindow.cpp \
    loginpasswordinterceptor.cpp \
    main.cpp \
    menubarwidget.cpp \
    notifymanager.cpp \
    notifywnd.cpp \
    pagesearchwindow.cpp \
    passwordmanager.cpp \
    passwordmanagerwindow.cpp \
    pluginitem.cpp \
    pluginmanager.cpp \
    pluginmanagerwindow.cpp \
    qthttputils.cpp \
    safebrowser.cpp \
    settingmenu.cpp \
    spiderserver.cpp \
    statusbarwidget.cpp \
    tabbarbutton.cpp \
    tabbarwidget.cpp \
    tabbuttonwidget.cpp \
    themeitem.cpp \
    thememanager.cpp \
    themewindow.cpp \
    toolbarwidget.cpp \
    urldetect.cpp \
    urldetectinterceptor.cpp \
    urlinfoitemwidget.cpp \
    utils.cpp \
    webcontentdetect.cpp

HEADERS += \
    aboutwindow.h \
    accountitem.h \
    arrangedwnd.h \
    browser.h \
    browsercomponent.h \
    browsermainwindow.h \
    configmanager.h \
    configwindow.h \
    contentwidget.h \
    customwarningdialog.h \
    customwebpage.h \
    customwebview.h \
    debugger.h \
    downloadwidget.h \
    downloadwindow.h \
    favoritemanagerwindow.h \
    filecheckmanager.h \
    global.h \
    historymanager.h \
    historymanagerwindow.h \
    loginpasswordinterceptor.h \
    menubarwidget.h \
    notifymanager.h \
    notifywnd.h \
    pagesearchwindow.h \
    passwordmanager.h \
    passwordmanagerwindow.h \
    pluginitem.h \
    pluginmanager.h \
    pluginmanagerwindow.h \
    qthttputils.h \
    safebrowser.h \
    settingmenu.h \
    spiderserver.h \
    statusbarwidget.h \
    tabbarbutton.h \
    tabbarwidget.h \
    tabbuttonwidget.h \
    themeitem.h \
    thememanager.h \
    themewindow.h \
    toolbarwidget.h \
    urldetect.h \
    urldetectinterceptor.h \
    urlinfoitemwidget.h \
    utils.h \
    webcontentdetect.h

FORMS += \
    aboutwindow.ui \
    accountitem.ui \
    browsermainwindow.ui \
    configwindow.ui \
    contentwidget.ui \
    customwarningdialog.ui \
    downloadwidget.ui \
    downloadwindow.ui \
    favoritemanagerwindow.ui \
    historymanagerwindow.ui \
    menubarwidget.ui \
    pagesearchwindow.ui \
    passwordmanagerwindow.ui \
    pluginitem.ui \
    pluginmanagerwindow.ui \
    settingmenu.ui \
    statusbarwidget.ui \
    tabbarwidget.ui \
    tabbuttonwidget.ui \
    themeitem.ui \
    themewindow.ui \
    toolbarwidget.ui \
    urlinfoitemwidget.ui

TRANSLATIONS += \
    safe_browser_zh_CN.ts

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

RESOURCES += \
    app_resource.qrc


# 添加openssl库
LIBS += -L"D:\OpenSSL-Win64\lib" -llibcrypto
INCLUDEPATH += D:/OpenSSL-Win64/include
